﻿using ChuanYe.CountyFireManagement.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ChuanYe.CountyFireManagement.Api.Models
{
    public class TaskInfoRequest
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int TaskId { get; set; }

        /// <summary>
        /// 任务名
        /// </summary>
        public string TaskName { get; set; }

        /// <summary>
        /// 任务类型  0.巡查
        /// </summary>
        public int TaskType { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        public int DepId { get; set; }

        /// <summary>
        /// 发送用户
        /// </summary>
        public int SendUserId { get; set; }

        /// <summary>
        /// 选填 状态 0.创建(未反馈) 1.已反馈 默认未反馈
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 任务描述
        /// </summary>
        public string Describe { get; set; }

        /// <summary>
        /// 选填 是否已读 0.未读 1.已读 默认未读
        /// </summary>
        public int? IsRead { get; set; }

        /// <summary>
        /// 选填 创建时间 
        /// </summary>
        public DateTime? AddTime { get; set; }

        /// <summary>
        /// 目标用户(接收者)
        /// </summary>
        public int TargetUserId { get; set; }
    }


    public class TaskInfoArrayRequest 
    {
        /// <summary>
        /// 多个任务集合
        /// </summary>
        public List<TaskInfoRequest> List { get; set; }
    }


    public class TaskFeedbackRequest {

        /// <summary>
        /// 反馈者ID（TargetUserId）
        /// </summary>
        public int UserID { get; set; }

        /// <summary>
        /// 任务编号
        /// </summary>
        public int TaskId { get; set; }

        /// <summary>
        /// 反馈内容
        /// </summary>
        public string  FeedbackContent { get; set; }


        /// <summary>
        /// 选填 反馈时间
        /// </summary>
        public DateTime? FeedbackTime { get; set; }


        /// <summary>
        /// 上传图片集合
        /// </summary>
        public List<string> ImagePaths { get; set; }
    }


    public class RemoveTaskInfoRequest 
    {
        /// <summary>
        /// 任务编号
        /// </summary>
        public int TaskId { get; set; }

    }

    public class TaskInfoSearchRequest : RequestPageBase
    {
        /// <summary>
        /// 选填 状态 0.创建(未反馈) 1.已反馈 
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 选填 任务类型  0.巡查
        /// </summary>
        public int? TaskType { get; set; }

        /// <summary>
        /// 目标用户
        /// </summary>
        public int TargetUserId { get; set; }
    }


}
